<#include "/lib/macro-lib.ftl"/>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>
<#include "../inc/commonJs.html">
<script src="../../js/calendar.js"></script>
<body>
<div align="center" class="easyui-panel" data-options='fit:true,border:false'>
<br>
<table width="98%" class="table_all" align="center" border="0" cellpadding="0"
			cellspacing="0" style="margin-top: 0px">
<form name="frm" method="post" action="loglist.do">
<tr align="center">
<td class="td_table_1">开始日期：</td><td class="td_table_2"><input type="text" name="logtime2" value="${logtime2!}" size=10 onclick="WdatePicker();"></td>
<td class="td_table_1">截止日期：</td><td class="td_table_2"><input type="text" name="logtime3" value="${logtime3!}" size=10 onclick="WdatePicker();"></td>
<td class="td_table_1">账户：</td><td class="td_table_2"><@selectUtil optName="account2" optVals=accounts optVal=account2!> class="easyui-combobox"</@selectUtil></td>
<td class="td_table_1">成员：</td><td class="td_table_2"><@selectUtil optName="user2" optVals=users optVal=user2!> class="easyui-combobox"</@selectUtil></td>
<td class="td_table_1">类型：</td><td class="td_table_2"><@selectUtil optName="type2" optVals=types optVal=type2!> class="easyui-combobox"</@selectUtil></td>
<td class="td_table_1">状态：</td><td class="td_table_2"><select name="zt2"  class="easyui-combobox">
    <option value="1" <#if zt2?? && zt2 == '1'>selected</#if>>启用</option>
   	<option value="0" <#if zt2?? && zt2 == '0'>selected</#if>>禁用</option>
</select>
</td>
</tr>
</form>
</table>
<input type="submit" class="button_70px" value="查询">
<input type="reset" class="button_70px" value="重置">
&nbsp;
<input type="button" class="button_100px" value="增加流水日志"  onclick="window.location='logadd.do';">
<table width="98%" border="0" cellpadding="0" cellspacing="0" class="table_all">
	<tr align="center">
		<td class="td_list_1"><b>日期</b></td>
		<td class="td_list_1"><b>账户</b></td>
		<td class="td_list_1"><b>成员</b></td>
		<td class="td_list_1"><b>类型</b></td>
		<td class="td_list_1"><b>备注</b></td>
		<td class="td_list_1"><b>金额</b></td>
		<td class="td_list_1"><b>操作</b></td>
	</tr>
<#list pager.result as obj >
	<tr align="center">
	<td class="td_list_2" width=120>${obj.logtime!}</td>
	<td class="td_list_2" width=140>${obj.aname!}</td>
	<td class="td_list_2" width=150>${obj.uname!}</td>
	<td class="td_list_2" align="left" width=250>${obj.tname!}</td>
	<td class="td_list_2" align="left" width="*">${obj.bz!}</td>
	<td class="td_list_2" align="right" width=50>#{obj.logprice?number; m2}</td>
	<td class="td_list_2" width=180>
		<a href="logedit.do?id=${obj.id}" class="btnEdit">修改</a>&nbsp;
		<a href="#" class="btnDel" onclick="if(window.confirm('确定要删除吗')) location='logdel.do?id=${obj.id}';">删除</a>
	</td>
	</tr>
</#list>
</table>
<@pageUtil pager=pager></@pageUtil>
合计：<b> #{inTotal?number+outTotal?number; m2} </b>元，其中【收入+】<b> #{inTotal?number; m2} </b>元，【支出-】 <b><font color=red> #{outTotal?number; m2} </font></b>元，差额<b><font color=blue> #{inTotal?number-outTotal?number; m2} </font></b>元。
</div>
</body>
</html>